﻿@model CommerceOne.Models.CartViewModel
           
	<div id="center_column" class="center_column">
<!-- Steps -->
@Html.Partial("_CheckoutStep", @Model.Step)
<!-- /Steps -->

<script type="text/javascript">
	// <![CDATA[
//    var baseDir = 'http://livedemo00.template-help.com/prestashop_34916/';
//    var currencySign = '$';
//    var currencyRate = '1';
//    var currencyFormat = '1';
//    var currencyBlank = '0';
//    var txtProduct = "product";
//    var txtProducts = "products";
	// ]]>
</script>

@if (Model.LastProduct != null) {
<table class="cart_last_product std">
    <tr>
        <th colspan="2">Last added product</th>
    </tr>
    <tr>
        <td class="cart_product">
            <a class="cart_last_product_img" href="@Model.LastProduct.Url"><img src="@Model.LastProduct.Thumnail" alt="@Model.LastProduct.Name" /></a>
        </td>
        <td>
            <h5><a class="product_link" href="@Model.LastProduct.Url">@Model.LastProduct.Name</a></h5>
        </td>
    </tr>
</table>
}

@if (Model.Cart.ProductLine.Count == 0)
{
    <p style="display: block" id="emptyCartWarning" class="warning">Your shopping cart is empty.</p>
}
else
{
<p>Your shopping cart contains <span id="summary_products_quantity">@Model.Cart.ComputeTotalItem() products</span></p>
}

<div id="order-detail-content" class="table_block">
    <table id="cart_summary" class="std">
        <thead>
            <tr>
                <th class="cart_product first_item">Product</th>
                <th class="cart_description item">Description</th>
                <th class="cart_ref item">Ref.</th>
                <th class="cart_availability item">Avail.</th>
                <th class="cart_unit item">Unit price</th>
                <th class="cart_quantity item">Qty</th>
                <th class="cart_total last_item">Total</th>
            </tr>
        </thead>
        <tfoot>
            <tr class="cart_total_price">
                <td colspan="6">Total products (tax excl.):</td>
                <td class="price" id="total_product"><span class="price">@Model.TotalPrice.ToString("$#,##0.00")</span></td>
            </tr>
            <tr class="cart_total_voucher" style="display: none;">
                <td colspan="6">Total vouchers (tax excl.):</td>
                <td class="price-discount" id="total_discount"><span class="price">$0.00</span></td>
            </tr>
            <tr class="cart_total_voucher" style="display: none;">
                <td colspan="6">Total gift-wrapping (tax excl.):</td>
                <td class="price-discount" id="total_wrapping">
                    <span class="price">$0.00</span>
                </td>
            </tr>
            <tr class="cart_total_delivery">
                <td colspan="6">
                    Total shipping (tax excl.):
                </td>
                <td class="price" id="total_shipping">
                    <span class="price">@Model.ShippingCost.ToString("$#,##0.00")</span>
                </td>
            </tr>
            <tr class="cart_total_price">
                <td colspan="6">
                    Total (tax excl.):
                </td>
                <td class="price" id="total_price_without_tax">
                    <span class="price">@Model.Cart.SubTotal.ToString("$#,##0.00")</span>
                </td>
            </tr>
            <tr class="cart_total_tax">
                <td colspan="6">
                    Total tax:
                </td>
                <td class="price" id="total_tax">
                    <span class="price">@Model.Cart.Tax.ToString("#,##0.00%")</span>
                </td>
            </tr>
            <tr class="cart_total_price">
                <td colspan="6">
                    Total (tax incl.):
                </td>
                <td class="price" id="total_price">
                    <span class="price">@Model.Cart.Total.ToString("$#,##0.00")</span>
                </td>
            </tr>
            <tr class="cart_free_shipping" style="display: none;">
                <td colspan="6" style="white-space: normal;">
                    Remaining amount to be added to your cart in order to obtain free shipping:
                </td>
                <td id="free_shipping" class="price">
                    <span class="price">$0.00</span>
                </td>
            </tr>
        </tfoot>
        <tbody>
        @foreach (var item in Model.Cart.ProductLine)
        {
            var id = "product_" + item.Id + "_0";
            <tr id="@id" class=" cart_item">
                <td class="cart_product"><a href="@item.Url"><img src="@item.Thumnail" alt="@item.Name" /></a></td>
                <td class="cart_description">
                    <h5><a class="product_link" href="@item.Url">@item.Name</a></h5>
                </td>
                <td class="cart_ref">&mdash;</td>
                <td class="cart_availability">
                    <img src="@Url.Content("~/themes/theme184/img/icon/available.png")"
                        alt="Available" width="14" height="14" />
                </td>
                <td class="cart_unit">
                    <span class="price" id="product_price_1_0">$@item.Price </span>
                </td>
                <td class="cart_quantity">
                    <div id="cart_quantity_button">
                        <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_1_0" href="/Add/@item.Id/1/?returnUrl=@Request.QueryString["returnUrl"]"
                            title="Add">
                            <img src="@Url.Content("~/themes/theme184/img/icon/quantity_up.png")"
                                alt="Add" width="14" height="9" /></a>
                        <input class="cart_quantity_input text" size="2" type="text" value="@item.Quantity" name="quantity_1_0" />
                        <a class="cart_quantity_down" rel="nofollow" id="cart_quantity_down_1_0" href="/Add/@item.Id/-1/?returnUrl=@Request.QueryString["returnUrl"]"
                            title="Subtract">
                            <img src="@Url.Content("~/themes/theme184/img/icon/quantity_down.png")"
                                alt="Subtract" width="14" height="9" /></a>
                    </div>
                    <a class="cart_quantity_delete" rel="nofollow" id="1_0" href="/Remove/@item.Id/?returnUrl=@Request.QueryString["returnUrl"]"
                        title="Delete">
                        <img src="@Url.Content("~/themes/theme184/img/icon/delete.gif")"
                            alt="Delete" class="icon" /></a>
                    <input type="hidden" value="5" name="quantity_1_0_hidden" />
                </td>
                <td class="cart_total"><span class="price" id="total_product_price_1_0">@item.SubTotal </span></td>
            </tr>
        }
        </tbody>
    </table>
</div>

<div id="cart_voucher" class="table_block">
    <form action="http://livedemo00.template-help.com/prestashop_34916/order.php" method="post"
    id="voucher">
    <fieldset>
        <h2>
            Vouchers</h2>
        <p class="text">
            <label for="discount_name">
                Code:</label>
            <input type="text" id="discount_name" name="discount_name" value="" />
        </p>
        <p class="submit">
            <input type="hidden" name="submitDiscount" /><input type="submit" name="submitAddDiscount"
                value="Add" class="button" /></p>
    </fieldset>
    </form>
</div>
<div id="HOOK_SHOPPING_CART">
    <script type="text/javascript">
	// <![CDATA[
        var taxEnabled = "1";
        var displayPrice = "1";
        var currencySign = '$';
        var currencyRate = '1';
        var currencyFormat = '1';
        var currencyBlank = '0';
        var id_carrier = '2';
        var id_state = '0';
        var txtFree = "Free!";
	//]]>
    </script>
    <form class="std" id="compare_shipping_form" method="POST" action="#">
    <fieldset id="compare_shipping">
        <h3>
            Estimate your shipping &amp; taxes</h3>
        <div id="carriercompare_errors" style="display: none;">
            <ul id="carriercompare_errors_list">
            </ul>
        </div>
        <p class="select">
            <label for="id_country">
                Country</label>
            <select name="id_country" id="id_country">
                <option value="231">Afghanistan</option>
                <option value="244">&Aring;land Islands</option>
                <option value="230">Albania</option>
                <option value="38">Algeria</option>
                <option value="39">American Samoa</option>
                <option value="40">Andorra</option>
                <option value="41">Angola</option>
                <option value="42">Anguilla</option>
                <option value="232">Antarctica</option>
                <option value="43">Antigua and Barbuda</option>
                <option value="44">Argentina</option>
                <option value="45">Armenia</option>
                <option value="46">Aruba</option>
                <option value="24">Australia</option>
                <option value="2">Austria</option>
                <option value="47">Azerbaijan</option>
                <option value="48">Bahamas</option>
                <option value="49">Bahrain</option>
                <option value="50">Bangladesh</option>
                <option value="51">Barbados</option>
                <option value="52">Belarus</option>
                <option value="3">Belgium</option>
                <option value="53">Belize</option>
                <option value="54">Benin</option>
                <option value="55">Bermuda</option>
                <option value="56">Bhutan</option>
                <option value="34">Bolivia</option>
                <option value="233">Bosnia and Herzegovina</option>
                <option value="57">Botswana</option>
                <option value="234">Bouvet Island</option>
                <option value="58">Brazil</option>
                <option value="235">British Indian Ocean Territory</option>
                <option value="59">Brunei</option>
                <option value="236">Bulgaria</option>
                <option value="60">Burkina Faso</option>
                <option value="61">Burma (Myanmar)</option>
                <option value="62">Burundi</option>
                <option value="63">Cambodia</option>
                <option value="64">Cameroon</option>
                <option value="4">Canada</option>
                <option value="65">Cape Verde</option>
                <option value="237">Cayman Islands</option>
                <option value="66">Central African Republic</option>
                <option value="67">Chad</option>
                <option value="68">Chile</option>
                <option value="5">China</option>
                <option value="238">Christmas Island</option>
                <option value="239">Cocos (Keeling) Islands</option>
                <option value="69">Colombia</option>
                <option value="70">Comoros</option>
                <option value="71">Congo, Dem. Republic</option>
                <option value="72">Congo, Republic</option>
                <option value="240">Cook Islands</option>
                <option value="73">Costa Rica</option>
                <option value="74">Croatia</option>
                <option value="75">Cuba</option>
                <option value="76">Cyprus</option>
                <option value="16">Czech Republic</option>
                <option value="20">Denmark</option>
                <option value="77">Djibouti</option>
                <option value="78">Dominica</option>
                <option value="79">Dominican Republic</option>
                <option value="80">East Timor</option>
                <option value="81">Ecuador</option>
                <option value="82">Egypt</option>
                <option value="83">El Salvador</option>
                <option value="84">Equatorial Guinea</option>
                <option value="85">Eritrea</option>
                <option value="86">Estonia</option>
                <option value="87">Ethiopia</option>
                <option value="88">Falkland Islands</option>
                <option value="89">Faroe Islands</option>
                <option value="90">Fiji</option>
                <option value="7">Finland</option>
                <option value="8">France</option>
                <option value="241">French Guiana</option>
                <option value="242">French Polynesia</option>
                <option value="243">French Southern Territories</option>
                <option value="91">Gabon</option>
                <option value="92">Gambia</option>
                <option value="93">Georgia</option>
                <option value="1">Germany</option>
                <option value="94">Ghana</option>
                <option value="97">Gibraltar</option>
                <option value="9">Greece</option>
                <option value="96">Greenland</option>
                <option value="95">Grenada</option>
                <option value="98">Guadeloupe</option>
                <option value="99">Guam</option>
                <option value="100">Guatemala</option>
                <option value="101">Guernsey</option>
                <option value="102">Guinea</option>
                <option value="103">Guinea-Bissau</option>
                <option value="104">Guyana</option>
                <option value="105">Haiti</option>
                <option value="106">Heard Island and McDonald Islands</option>
                <option value="108">Honduras</option>
                <option value="22">HongKong</option>
                <option value="143">Hungary</option>
                <option value="109">Iceland</option>
                <option value="110">India</option>
                <option value="111">Indonesia</option>
                <option value="112">Iran</option>
                <option value="113">Iraq</option>
                <option value="26">Ireland</option>
                <option value="29">Israel</option>
                <option value="10">Italy</option>
                <option value="32">Ivory Coast</option>
                <option value="115">Jamaica</option>
                <option value="11">Japan</option>
                <option value="116">Jersey</option>
                <option value="117">Jordan</option>
                <option value="118">Kazakhstan</option>
                <option value="119">Kenya</option>
                <option value="120">Kiribati</option>
                <option value="121">Korea, Dem. Republic of</option>
                <option value="122">Kuwait</option>
                <option value="123">Kyrgyzstan</option>
                <option value="124">Laos</option>
                <option value="125">Latvia</option>
                <option value="126">Lebanon</option>
                <option value="127">Lesotho</option>
                <option value="128">Liberia</option>
                <option value="129">Libya</option>
                <option value="130">Liechtenstein</option>
                <option value="131">Lithuania</option>
                <option value="12">Luxemburg</option>
                <option value="132">Macau</option>
                <option value="133">Macedonia</option>
                <option value="134">Madagascar</option>
                <option value="135">Malawi</option>
                <option value="136">Malaysia</option>
                <option value="137">Maldives</option>
                <option value="138">Mali</option>
                <option value="139">Malta</option>
                <option value="114">Man Island</option>
                <option value="140">Marshall Islands</option>
                <option value="141">Martinique</option>
                <option value="142">Mauritania</option>
                <option value="35">Mauritius</option>
                <option value="144">Mayotte</option>
                <option value="145">Mexico</option>
                <option value="146">Micronesia</option>
                <option value="147">Moldova</option>
                <option value="148">Monaco</option>
                <option value="149">Mongolia</option>
                <option value="150">Montenegro</option>
                <option value="151">Montserrat</option>
                <option value="152">Morocco</option>
                <option value="153">Mozambique</option>
                <option value="154">Namibia</option>
                <option value="155">Nauru</option>
                <option value="156">Nepal</option>
                <option value="13">Netherlands</option>
                <option value="157">Netherlands Antilles</option>
                <option value="158">New Caledonia</option>
                <option value="27">New Zealand</option>
                <option value="159">Nicaragua</option>
                <option value="160">Niger</option>
                <option value="31">Nigeria</option>
                <option value="161">Niue</option>
                <option value="162">Norfolk Island</option>
                <option value="163">Northern Mariana Islands</option>
                <option value="23">Norway</option>
                <option value="164">Oman</option>
                <option value="165">Pakistan</option>
                <option value="166">Palau</option>
                <option value="167">Palestinian Territories</option>
                <option value="168">Panama</option>
                <option value="169">Papua New Guinea</option>
                <option value="170">Paraguay</option>
                <option value="171">Peru</option>
                <option value="172">Philippines</option>
                <option value="173">Pitcairn</option>
                <option value="14">Poland</option>
                <option value="15">Portugal</option>
                <option value="174">Puerto Rico</option>
                <option value="175">Qatar</option>
                <option value="176">Reunion Island</option>
                <option value="36">Romania</option>
                <option value="177">Russian Federation</option>
                <option value="178">Rwanda</option>
                <option value="179">Saint Barthelemy</option>
                <option value="180">Saint Kitts and Nevis</option>
                <option value="181">Saint Lucia</option>
                <option value="182">Saint Martin</option>
                <option value="183">Saint Pierre and Miquelon</option>
                <option value="184">Saint Vincent and the Grenadines</option>
                <option value="185">Samoa</option>
                <option value="186">San Marino</option>
                <option value="187">S&atilde;o Tom&eacute; and Pr&iacute;ncipe</option>
                <option value="188">Saudi Arabia</option>
                <option value="189">Senegal</option>
                <option value="190">Serbia</option>
                <option value="191">Seychelles</option>
                <option value="192">Sierra Leone</option>
                <option value="25">Singapore</option>
                <option value="37">Slovakia</option>
                <option value="193">Slovenia</option>
                <option value="194">Solomon Islands</option>
                <option value="195">Somalia</option>
                <option value="30">South Africa</option>
                <option value="196">South Georgia and the South Sandwich Islands</option>
                <option value="28">South Korea</option>
                <option value="6">Spain</option>
                <option value="197">Sri Lanka</option>
                <option value="198">Sudan</option>
                <option value="199">Suriname</option>
                <option value="200">Svalbard and Jan Mayen</option>
                <option value="201">Swaziland</option>
                <option value="18">Sweden</option>
                <option value="19">Switzerland</option>
                <option value="202">Syria</option>
                <option value="203">Taiwan</option>
                <option value="204">Tajikistan</option>
                <option value="205">Tanzania</option>
                <option value="206">Thailand</option>
                <option value="33">Togo</option>
                <option value="207">Tokelau</option>
                <option value="208">Tonga</option>
                <option value="209">Trinidad and Tobago</option>
                <option value="210">Tunisia</option>
                <option value="211">Turkey</option>
                <option value="212">Turkmenistan</option>
                <option value="213">Turks and Caicos Islands</option>
                <option value="214">Tuvalu</option>
                <option value="215">Uganda</option>
                <option value="216">Ukraine</option>
                <option value="217">United Arab Emirates</option>
                <option value="17">United Kingdom</option>
                <option value="21" selected="selected">United States</option>
                <option value="218">Uruguay</option>
                <option value="219">Uzbekistan</option>
                <option value="220">Vanuatu</option>
                <option value="107">Vatican City State</option>
                <option value="221">Venezuela</option>
                <option value="222">Vietnam</option>
                <option value="223">Virgin Islands (British)</option>
                <option value="224">Virgin Islands (U.S.)</option>
                <option value="225">Wallis and Futuna</option>
                <option value="226">Western Sahara</option>
                <option value="227">Yemen</option>
                <option value="228">Zambia</option>
                <option value="229">Zimbabwe</option>
            </select>
        </p>
        <p class="select" id="states" style="display: none;">
            <label for="id_state">
                State</label>
            <select name="id_state" id="id_state">
            </select>
        </p>
        <p class="text">
            <label for="zipcode">
                Zipcode</label>
            <input type="text" name="zipcode" id="zipcode" value="" />
        </p>
        <div id="availableCarriers" style="display: none;">
            <table cellspacing="0" cellpadding="0" id="availableCarriers_table" class="std">
                <thead>
                    <tr>
                        <th class="carrier_action first_item">
                        </th>
                        <th class="carrier_name item">
                            Carrier
                        </th>
                        <th class="carrier_infos item">
                            Information
                        </th>
                        <th class="carrier_price last_item">
                            Price
                        </th>
                    </tr>
                </thead>
                <tbody id="carriers_list">
                </tbody>
            </table>
        </div>
        <p class="warning" id="noCarrier" style="display: none;">
            No carrier is available for this selection</p>
        <p class="center">
            <input class="exclusive_large" id="carriercompare_submit" type="submit" name="carriercompare_submit"
                value="Update my shipping option" />
        </p>
    </fieldset>
    </form>
</div>
<p class="cart_navigation">
    <a href="http://livedemo00.template-help.com/prestashop_34916/order.php?step=1&amp;back=order.php?step=1"
        class="exclusive" title="Next">Next &raquo;</a> <a href="@Model.ReturnUrl"
            class="button_large" title="Continue shopping">&laquo; Continue shopping</a>
</p>
</div>
